determine if a number is a solution of an equation